package org.example.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;
import org.example.entity.Auccount;

public interface AuccoutMapper {

    @Insert("insert into account_tbl (user_id, money) values (#{userId}, #{money})")
    int insert(Auccount record); // 增加
    @Update("update account_tbl set money = money + #{money} where user_id = #{userId}")
    int debit(Auccount record);


}
